﻿using MKAdminCore.DTO.Web.BasicSetting;
using MKAdminCore.DTO.Web.Common;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace MKAdminCore.IService.Web.BasicSetting
{
    public interface IRoleInfoService
    {
        /// <summary>
        /// 获取角色信息
        /// </summary>
        /// <param name="parameter"></param>
        /// <returns></returns>
        PagingList<OperatorRoleInfo> List(GetRoleInfoListParameter parameter);

        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="parameter"></param>
        /// <param name="userInfo"></param>
        /// <returns></returns>
        Task<HttpResponseResult> Add(OperatorRoleInfoAddParam parameter, UserInfo userInfo);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="parameter"></param>
        /// <param name="userInfo"></param>
        /// <returns></returns>
        Task<HttpResponseResult> Edit(OperatorRoleInfoEditParam parameter, UserInfo userInfo);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="parameter"></param>
        /// <param name="userInfo"></param>
        /// <returns></returns>
        Task<HttpResponseResult> Del(OperatorRoleInfoDelParam parameter, UserInfo userInfo);

        /// <summary>
        /// 获取角色权限集合
        /// </summary>
        /// <param name="parameter"></param>
        /// <param name="userInfo"></param>
        /// <returns></returns>
        Task<HttpResponseResult> GetRight(OperatorRoleInfoGetRight parameter);
    }
}
